<template>
  <div class="list_menu diy_menu">
    <router-link
            to="/user_center/index"
            class="menu_item"
            :class="{ selected: this.$route.path=== '/user_center/index'}"
     >
      <span class="left_span">个人首页</span>
      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
    </router-link>
          <router-link
          to="/student_users/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/student_users/table'}"
          v-if="$check_action('/student_users/table','get')">
        <span class="left_span">学生用户</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/teacher_users/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/teacher_users/table'}"
          v-if="$check_action('/teacher_users/table','get')">
        <span class="left_span">教师用户</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/club_information/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/club_information/table'}"
          v-if="$check_action('/club_information/table','get')">
        <span class="left_span">社团信息</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/classification_of_clubs/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/classification_of_clubs/table'}"
          v-if="$check_action('/classification_of_clubs/table','get')">
        <span class="left_span">社团分类</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/club_registration/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/club_registration/table'}"
          v-if="$check_action('/club_registration/table','get')">
        <span class="left_span">社团报名</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/notification_reminder/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/notification_reminder/table'}"
          v-if="$check_action('/notification_reminder/table','get')">
        <span class="left_span">通知提醒</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/course_selection_information/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/course_selection_information/table'}"
          v-if="$check_action('/course_selection_information/table','get')">
        <span class="left_span">选课信息</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/course_selection_record/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/course_selection_record/table'}"
          v-if="$check_action('/course_selection_record/table','get')">
        <span class="left_span">选课记录</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/cancel_course_selection/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/cancel_course_selection/table'}"
          v-if="$check_action('/cancel_course_selection/table','get')">
        <span class="left_span">选课取消</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/club_activities/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/club_activities/table'}"
          v-if="$check_action('/club_activities/table','get')">
        <span class="left_span">社团活动</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/event_registration/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/event_registration/table'}"
          v-if="$check_action('/event_registration/table','get')">
        <span class="left_span">活动报名</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/activity_feedback/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/activity_feedback/table'}"
          v-if="$check_action('/activity_feedback/table','get')">
        <span class="left_span">活动反馈</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/event_cancellation/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/event_cancellation/table'}"
          v-if="$check_action('/event_cancellation/table','get')">
        <span class="left_span">活动取消</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
          <router-link
              to="/forum/table"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/forum/table'}"
              v-if="$check_action('/forum/table','get')">
        <span class="left_span">{{$page_title("/forum/table") || "论坛"}}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
  <router-link
              to="/user/collect"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/user/collect'}"
              v-if="$check_action('/collect/list','get')">
        <span class="left_span">收藏</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
  </router-link>
	<router-link
	            to="/comment/table"
	            class="menu_item"
	            :class="{ selected: this.$route.path=== '/comment/table'}"
	            v-if="$check_action('/comment/table','get')">
	      <span class="left_span">评论管理</span>
	      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
	</router-link>
  </div>
</template>

<script>
import mixin from "@/mixins/page.js";
export default {
  mixins: [mixin],
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
  },

  components: {
  },
};
</script>

<style scoped>
.list_menu {
  flex: 0 0 25%;
  border-bottom: 1px solid #eee;
}
.menu_item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-bottom: none;
  background-color: #fff;
}
.menu_item.selected {
  background-color: #000;
}
.menu_item.selected span {
  color: #fff ;
}
.content {
  flex: 0 0 74%;
}
</style>
